﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Algorithms;
using Infrastructure;
using Infrastructure.DataTypes;
using System.Diagnostics;

namespace Algorithms
{
    /// <summary>
    /// Cosine prediction algorithm
    /// </summary>
    /// <typeparam name="RatingType"></typeparam>
    public class PredictCosine<RatingType> : PredictionAlgorithm<RatingType> where RatingType : ICountable, new()
    {
        /// <summary>
        /// predict rating user will give for an item
        /// </summary>
        /// <param name="user"></param>
        /// <param name="item"></param>
        /// <returns></returns>
        public override double PredictRating(User<RatingType> user, Item<RatingType> item)
        {
            //TODO: your code here!
            throw new NotImplementedException();
        }

        public override string Name
        {
            get { return "Cosine (predefined)"; }
        }

    }
}
